package com.xywy.bloodandroid.act;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.xywy.bloodandroid.R;
import com.xywy.bloodandroid.base.BaseActivity;

/**
 * 清理缓存
 */
public class ClearCacheActivity extends BaseActivity {

	private TextView middle_title; // title
	private RelativeLayout left_img; // left button
	private LinearLayout ll_clear_cache; // clear button

	@Override
	protected void initView(Bundle savedInstanceState) {
		setContentView(R.layout.activity_clear_cache);

		middle_title = (TextView) findViewById(R.id.middle_title);
		middle_title.setText("清理");
		left_img = (RelativeLayout) findViewById(R.id.left_img);
		ll_clear_cache = (LinearLayout) findViewById(R.id.ll_clear_cache);
	}

	@Override
	protected void initListener() {
		left_img.setOnClickListener(this);
		ll_clear_cache.setOnClickListener(this);
	}

	@Override
	protected void initData() {

	}

	@Override
	public void onClick(View v) {
		super.onClick(v);
		switch (v.getId()) {
		case R.id.left_img:
			ClearCacheActivity.this.finish();
			break;
		case R.id.ll_clear_cache:
			// TODO: clear cache
			showToast("清理成功");
			break;

		default:
			break;
		}
	}
}
